# Contributor: Grigory Kirillov <txgk@bk.ru>
# Maintainer: Sergiy Stupar <owner@sestolab.pp.ua>
pkgname=sxcs
pkgver=1.1.0
pkgrel=0
pkgdesc="Minimal X11 Color Picker and Magnifier"
url="https://codeberg.org/NRK/sxcs"
arch="all"
license="GPL-3.0-or-later"
options="!check" # no test suite
makedepends="libx11-dev libxcursor-dev"
source="$pkgname-$pkgver.tar.gz::https://codeberg.org/NRK/sxcs/archive/v$pkgver.tar.gz"
subpackages="$pkgname-doc"
builddir="$srcdir/sxcs"

build() {
	make -e sxcs LDLIBS="-lX11 -lXcursor"
}

package() {
	install -Dm755 -t "$pkgdir"/usr/bin sxcs
	install -Dm644 -t "$pkgdir"/usr/share/man/man1 sxcs.1
}

sha512sums="
c6e7bf79af3f546950e986838ec4626ce19363f433ae969c7bfdb24d380cf229cad18bd70e6b8ff836fdf44955d604c1119632c641dea8e8f870d42e2602c924  sxcs-1.1.0.tar.gz
"
